﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyBlog.DataAccessInterface;
using MyBlog.DataEntity;

namespace MyBlog.DataAccess
{
    public class SysInfoContext : IDALSysInfo
    {
        IContext _context;
        public SysInfoContext(IContext context)
        {
            _context = context;
        }
        public Tbl_SysInfo Get(int type)
        {
            return _context.GetAll<Tbl_SysInfo>().First(x => x.Type == type);
        }
    }
}
